using Dream.FirstLevel.Base;
using Light;
using UnityEngine;

namespace Dream.FirstLevel.Implement
{
    //mao 24-11-23 07:32
    /// <summary>
    ///     打印任务，
    ///     到领导处接受，再去打印机打印，完成后返回给领导
    /// </summary>
    public class ProductB : ProductBase
    {
        public ProductB()
        {
            ResManager.Instance.LoadAsync<Sprite>("ProductB", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 6000;
            scuessPoints = 12;
            failPoints = 12;
        }

        /// <summary>
        ///     给在Worker中进行调用
        /// </summary>
        /// <param name="parentContainer"></param>
        public ProductB(Player.Player parentContainer)
        {
            this.parentContainer = parentContainer;
            ResManager.Instance.LoadAsync<Sprite>("ProductB", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 6000;
            scuessPoints = 10;
            failPoints = 5;
        }

        public override void Success()
        {
            base.Success();
            Debug.Log("ProductB Success");
        }
    }
}